//
//  NetworkTool.h
//  MyLifeApp
//
//  Created by 李杭玖 on 16/10/18.
//  Copyright © 2016年 我家生活科技有限公司. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"
// 定义请求方法的枚举
typedef enum :NSInteger{
    GET,
    POST,
}requestMethod;

typedef void (^callBackBlock)(id responseObject,NSError *error);

@interface NetworkTool : AFHTTPSessionManager

// 网络工具单例类方法
+(instancetype)sharedTools;

-(void)requestMethod:(requestMethod)method URL:(NSString *)url parameters:(id)parameters finish:(callBackBlock)finished;

-(void)requestURL:(NSString *)url withParams:(NSMutableDictionary *)params fileData:(NSMutableDictionary *)fileDic finished:(void (^)(id, NSError *))finished;
@end
